package com.liwujie.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel(value = "订单确认参数")
public class OrderConfirmDTO {

    @ApiModelProperty(value = "购物车ID集合(从购物车生成订单时使用)")
    private List<Long> shopCartIds;

    @ApiModelProperty(value = "立即购买商品信息(直接购买时使用)")
    private OrderItemDTO orderItem;

    @ApiModelProperty(value = "订单来源 1:购物车 2:立即购买", required = true)
    @NotNull(message = "订单来源不能为空")
    private Integer source;
}
